package com.bytecodezz.app.sketch.draw.service

import android.content.Context
import android.content.Intent
import com.alibaba.android.arouter.facade.annotation.Route
import com.bytecodezz.app.sketch.common.draw.DrawConfig
import com.bytecodezz.app.sketch.common.router.DrawPath

//向上暴露服务，用于其他模块能初始化该进程中的Android服务
@Route(path = DrawPath.SERVICE_DRAW_CONFIG)
class DrawConfigImpl : DrawConfig {
    override fun onProcessInit(context: Context) {
        val intent = Intent(context, DrawEmptyService::class.java)
        context.startService(intent)
    }

    override fun init(context: Context?) {
    }
}